home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK2.toast / Development Kits (Disc 2) / ScriptX / Documentation / Code Examples from Docs / langguid / chap_09 / xmpl_07.sx < prev    next >
Encoding:
Text File  |  1996-05-21  |  358 b   |  24 lines  |  [TEXT/R*ch]

  1. --<<<
  2. -- Kaleida Labs, Inc.
  3. -- Field Guide to the ScriptX Language
  4. -- chapter 9, example 7
  5.  
  6. module XYZ
  7.     uses ScriptX
  8.     exports x, y, z
  9. end
  10. in module XYZ
  11. global x:10, y:"foo", z:#(56,567)
  12.  
  13. module XYZexclude1
  14.     uses ScriptX
  15.     uses XYZ with
  16.         imports everything
  17.         excludes y
  18.     end
  19. end
  20. in module XYZexclude1
  21. print x
  22. -- this should generate an exception
  23. print y
  24. -->>>